<?php include_partial('global/userMessages', array('flash_name' => 'new_farm_errs')) ?>
<form id='main_form' method='post' action='<?php echo url_for('@create_farm') ?>' enctype='application/x-www-form-urlencoded'>
<div class="static">
<div class="formcontain">
<div class="farmform">

<!-- CONTACT INFORMATION -->

<h1>Contact Information</h1>
<table class='tbl' border="0">
  <tr>
    <td class='lbl req' ><p>First Name</p></td>
	<td><input type="text" class='txt req' name='contact_fn' maxlength="50"/></td>
<td class='lbl r'><p>Mobile</p></td>
	<td><input name='contact_mobile' type="text" class='txt'  maxlength="15"/></td>
</tr>

 <tr>
    <td class='req lbl'><p>Last Name</p></td>
	<td><input name='contact_ln' type="text" class='txt req' maxlength="50"/></td>
<td class='lbl r'><p>Email</p></td>
	<td><input name='contact_email' type="text" class='txt' maxlength="50"/></td>
</tr>

 <tr>
    <td class='lbl'><p>Phone</p></td>
	<td><input name='contact_phone' type="text" class='txt' maxlength="15"/></td>

</tr>
</table>

<!-- FARM INFORMATION -->


<h1>Farm Information</h1>
<table class='tbl' border="0">
  <tr>
    <td class='req lbl'><p>Farm Name</p></td>
	<td><input name='name' type="text" class='txt req' maxlength="50"/></td>
<td class='lbl r'><p>Farm Zip</p></td>
	<td><input name='zip' type="text" class='txt' maxlength="5"/></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm Address</p></td>
	<td><input name='address' type="text" class='txt' maxlength="50"/></td>
<td class='lbl r'><p>Farm County</p></td>
	<td><input name='county' type="text" class='txt' maxlength="25"/></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm City</p></td>
	<td><input name='city' type="text" class='txt' maxlength="25"/></td>
<td class='lbl r'><p>Farm Basin</p></td>
	<td><?php include_partial('basinOptions') ?></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm State</p></td>
	<td><?php include_partial('stateOptions') ?></td>
<td class='lbl r'><p>Farm HUC</p></td>
	<td><input name='huc' maxlength="8" type="text" class='txt' /></td>
</tr>
</table>

</div>
</div>

</div>

<!-- NEW FORMS -->

<div id="newforms">
<div class="formcontain">
<div class="farmform">

<!-- FIELD INFORMATION -->


<h1>Field Information</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td class='req'>Field Name</td>
        <td class='req'>Field Year</td>
        <td>Acres</td>
        <td>Herbicide Used</td>
        <td>Preceding Crop</td>
        <td>Current Crop</td>
        <td>Date Planted <br /> (month/day/year)</td>
        <td>Lime Applied</td>
    </tr>
    <tr>
        <td><input type="text" class='txt req' name="field_name[]" maxlength="25"/></td>
        <td><?php include_partial('yearOptions') ?></td>
        <td class='int'><input type="text" class='txt' name="acres[]" maxlength='10' /></td>
        <td><input type="text" class='txt' name="herbicide_used[]" maxlength="25"/></td>
        <td><select name="preceding_crop[]" >
        <option>Corn</option>
        <option>Barley</option>
        <option>Canola</option>
        <option>Corn</option>
        <option>Corn Silage</option>
        <option>Dry Beans</option>
        <option>Forage Crops</option>
        <option>Potatoes</option>
        <option>Rye</option>
        <option>Snap Beans</option>
        <option>Sorghum</option>
        <option>Soybeans</option>
        <option>Sugar Beets</option>
        <option>Sweet Corn</option>
        <option>Vegetables</option>
        <option>Wheat</option>
        <option>Other</option>
        </select>
        </td>
        <td><select name="current_crop[]">
         <option>Corn</option>
        <option>Barley</option>
        <option>Canola</option>
        <option>Corn</option>
        <option>Corn Silage</option>
        <option>Dry Beans</option>
        <option>Forage Crops</option>
        <option>Potatoes</option>
        <option>Rye</option>
        <option>Snap Beans</option>
        <option>Sorghum</option>
        <option>Soybeans</option>
        <option>Sugar Beets</option>
        <option>Sweet Corn</option>
        <option>Vegetables</option>
        <option>Wheat</option>
        <option>Other</option>
        </select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('prefix' => 'fi')) ?></td>
        <td><select name="lime_applied[]">
        <option>Yes</option>
        <option>No</option>
        </select>
        </td>
            
    </tr>
</table>


<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="comments[]"></textarea></td>
    </tr>
</table>


<!-- FIELD FERTILITY -->

<h1>Field Fertility</h1>

<table class='tbl' border="0">

    <tr class="tr_one">
        
        <td>N_PSNT</td>
        <td>Bray P1</td>
        <td>K</td>
        <td>NH<sub>4</sub></td>
        <td>Soil pH</td>
        <td>Buffered pH</td>
    </tr>

    <tr>
        
        <td><input type="text" class='txt'  name="f_npsnt[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_brayp1[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_k[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_nh4[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_soilph[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_bufferedph[]" maxlength="25"/></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2"  name="f_comments[]"></textarea></td>
    </tr>
</table>

<!-- NUTRIENTS ADDED -->

<h1>Nutrients Added</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>N</td>
        <td>P</td>
        <td>K</td>
    </tr>

    <tr>
        <td><input type="text" class='txt'  name="na_N[]" maxlength='10' /></td>
        <td><input type="text" class='txt'  name="na_P[]" maxlength='10' /></td>
        <td><input type="text" class='txt'  name="na_K[]" maxlength='10' /></td>
    </tr>
</table>


<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Manure</td>
        <td>Type</td>
        <td><sub>m</sub>N</td>
        <td><sub>m</sub>P</td>
        <td><sub>m</sub>K</td>
    </tr>

    <tr>
        <td class='xsm'><?php include_partial('manureOptions') ?></td>
        <td><input type="text" class='txt'  name="na_type[]" maxlength="100"/></td>
        <td class='int'><input type="text" class='txt'  name="na_mN[]" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt' name="na_mP[]" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt' name="na_mK[]" maxlength='10' /></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="na_comments[]"></textarea></td>
    </tr>
</table>

<!-- COVER CROP -->

<h1>Cover Crop</h1>
<table class='tbl' border="0">
    <tr class="tr_one">
        
        <td>Family</td>
        <td>Used</td>
        <td>Rate</td>
        <td>Seed Cost</td>
        <td>Cost Share</td>
        <td>Planting Method</td>
        <td>Date Planted<br /> (month/day/year)</td>
        <td>Q.S. Fall</td>
        <td>Q.S. Spring</td>
    </tr>

    <tr>
        
       
        <td class='md'><select  name="cc_family[]">
        <option>Brassica</option>
        <option>Grass</option>
        <option>Legume</option>
        <option>Mix</option>
        <option>Non-Legume Broadleaf</option>
        
        </select>
        </td>
        <td class='lg'>
        <select name="cc_used[]">
        <option>Alfalfa (Non-Dormant)</option>
        <option>Barley (Winter)</option>
        <option>Buckwheat</option>
        <option>Clover (Berseem)</option>
        <option>Clover (Crimson)</option>
        <option>Clover (Red)</option>
        <option>Cowpea</option>
        <option>Millet (Japanese)</option>
        <option>Millet (Pearl)</option>
        <option>Oats</option>
        <option>Pea (Field/Winter)</option>
        <option>Radish (Oilseed)</option>
        <option>Rapeseed/Canola</option>
        <option>Rye (Winter Cereal)</option>
        <option>Ryegrass (Annual)</option>
        <option>Sorghum (Sudangrass)</option>
        <option>Sweet Clover</option>
        <option>Triticale (Winter)</option>
        <option>Turnip (Forage type)</option>
        <option>Vetch (Hairy)</option>
        <option>Wheat (Winter)</option>
        <option>50% HV/50% WC Rye</option>
        <option>50% W. Pea/50% OSR</option>
        <option>60% A Ryegr/40% OSR</option>
        <option>60% Cr Cl/40% A. Ryegr</option>
        <option>60% Cr Cl/40% Oats</option>
        <option>60% Oats/40% OSR</option>
        <option>Other (explain in comments)</option>
        
        
        
        </select>
        </td>
        <td class='int'><input type="text" class='txt'  name="cc_rate[]" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_seed_cost[]" maxlength='10' /></td>
        <td class='xsm'><select  name="cc_cost_share[]">
        <option>None</option>
        <option>EQIP</option>
        <option>CSP</option>
        <option>State</option>
        <option>Local</option>
        <option>Other</option>
        
        
        </select>
        </td>
        <td class='lg'><select  name="cc_planting_method[]">
        <option>Areal</option>
        <option>Broadcast</option>
        <option>Drill</option>
        <option>Frost seed</option>
        <option>Highboy seeder</option>
        <option>Planter</option>
        <option>Precision</option>
        <option>Slurry</option>
        <option>Other (explain in comments)</option>
        
        
        
        
        
        </select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('prefix' => 'cc')) ?></td>
        <td class='xxs'>
        
        <select  name="cc_quality_fall[]">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        
        </select>
        </td>
        <td class='xxs'><select  name="cc_quality_spring[]" >
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        
        </select>
        
        
        </td>
    </tr>
</table>


<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Termination Method</td>
        <td>Termination Chemical Used</td>
        <td>Carrier</td>
        <td># of Times Sprayed</td>
        <td>Termination Temp</td>
        <td>Termination Weather</td>
        <td>Termination Date<br /> (month/day/year)</td>
        <td>Successful Termination</td>
        <td>Yield</td>
    </tr>

    <tr>
        <td><input type="text" class='txt'  name="cc_term_method[]" maxlength="25" /></td>
        <td><input type="text" class='txt'  name="cc_term_chem[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="cc_carrier[]" maxlength='25' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_sprayed[]" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_term_temp[]" maxlength='10' /></td>
        <td><select  name="cc_term_weather[]">
            <option>Sunny</option>
            <option>Partly Sunny</option>
            <option>Cloudy</option>
            <option>Rainy</option></select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('prefix' => 'cc_term')) ?></td>
        <td><select  name="cc_success_term[]">
            <option>Yes</option>
            <option>No</option>
            <option>Eventually</option>
            </select>
        </td>
        <td class='int'><input type="text" class='txt'  name="cc_yield[]" maxlength='10' /></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="cc_comments[]"></textarea></td>
    </tr>
</table>

<!-- CONSERVATION TILLAGE -->

<h1>Conservation Tillage</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Tillage Acres</td>
        <td>Previous Tillage</td>
        <td>Current Tillage</td>
    </tr>
    <tr>
        
        <td class='int'><input name="ct_acres[]" type="text" class='txt'  maxlength='10' /></td>
        <td>
        <select  name="ct_previous[]">
            <option>Continuous No Till</option>
            <option>No Till</option>
            <option>Strip Till</option>
            <option>Mulch Till</option>
            <option>Conventional Till</option></select>
        </td>
        <td>
        <select  name="ct_current[]">
        <option>Continuous No Till</option>
            <option>No Till</option>
            <option>Strip Till</option>
            <option>Mulch Till</option>
            <option>Conventional Till</option></select>
        </td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="ct_comments[]"></textarea></td>
    </tr>
</table>


<!-- PEST CONTROL -->

<h1>Pest Control</h1>

<table class='tbl' border="0">


    <tr class="tr_one">
        
        <td>Pest</td>
        <td>Threshold</td>
        <td>Method</td>
        <td>Chemical Application Rate</td>
        <td>Application Date<br /> (month/day/year)</td>
    </tr>
    
    
    <tr>
        
        <td><input type="text" class='txt'  name="pc_pest[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_threshold[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_method[]" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_chem_app_rate[]" maxlength="25"/></td>
        <td class='date'><?php include_partial('global/dateBox', array('prefix' => 'pc_app')) ?></td>
    </tr>
</table>


<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="pc_comments[]"></textarea></td>
    </tr>
</table>

</div>

</div>

</div>
<p id='form_btns'><input id='sf_btn' type='button' value='Subtract Field -' /> <input id='af_btn' type='button' value='Add Field +' /> <input type='reset' value='Reset' /> <input id='submit_btn' type='submit' value='Save' /></p>
</form>
